/* ============================================================
   CarZoon DVLA — Advertise My Car
   Multi-step flow stylesheet
   ============================================================ */

/* UTILITY */
/* API-filled fields are hidden by default; JS shows them only for manual entry */
.display-n { display: none !important; }

/* BASE */
.cz-advertise-section {
    padding: 40px 20px 60px;
    background: #f4f6fb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cz-advertise-wrap {
    max-width: 900px;
    margin: 0 auto;
}

/* PROGRESS BAR */
.cz-progress-bar-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 22px 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(10,30,60,0.07);
}
.cz-progress-track {
    height: 6px;
    background: #e4eaf4;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 18px;
}
.cz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f68ff, #1faf5a);
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
}
.cz-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.cz-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    cursor: default;
}
.cz-ps-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4eaf4;
    color: #8a9abf;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}
.cz-progress-step span {
    font-size: 11px;
    color: #8a9abf;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
.cz-progress-step.active .cz-ps-dot {
    background: #2f68ff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(47,104,255,0.15);
}
.cz-progress-step.active span {
    color: #2f68ff;
    font-weight: 700;
}
.cz-progress-step.done .cz-ps-dot {
    background: #1faf5a;
    color: #fff;
}
.cz-progress-step.done span {
    color: #1faf5a;
}

/* STEP HEADER */
.cz-step-header {
    text-align: center;
    margin-bottom: 24px;
}
.cz-page-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f2744;
    margin: 0 0 10px;
    line-height: 1.15;
}
.cz-page-subtitle {
    font-size: 16px;
    color: #5b6f8a;
    margin: 0;
    line-height: 1.6;
}
.cz-step-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f2744;
    margin: 0 0 8px;
}
.cz-step-subtitle {
    font-size: 15px;
    color: #5b6f8a;
    margin: 0;
}

/* CARD */
.cz-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(10,30,60,0.06);
    margin-bottom: 20px;
}

/* STEP 1: REG FIELD */
.cz-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f2744;
    margin-bottom: 10px;
}
.cz-plate-input-wrap {
    display: flex;
    align-items: stretch;
    background: #ffd84c;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #f5c400;
    max-width: 480px;
}
.cz-plate-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 78px;
    background: #f0bb00;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    border-right: 2px solid rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}
.cz-plate-input-wrap input {
    flex: 1;
    min-height: 72px;
    border: 0;
    background: transparent;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #111;
    padding: 0 20px;
    text-transform: uppercase;
    outline: none;
}
.cz-reg-actions {
    margin-top: 18px;
}
.cz-manual-link-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef1f8;
}
.cz-link-btn {
    background: none;
    border: none;
    color: #2f68ff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    text-decoration: underline;
}

/* BUTTONS */
.cz-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 30px;
    background: #2f68ff;
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 8px 22px rgba(47,104,255,0.28);
    text-decoration: none;
}
.cz-btn-primary:hover {
    background: #1f55e8;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(47,104,255,0.32);
}
.cz-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.cz-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    background: transparent;
    color: #0f2744 !important;
    border: 2px solid #d0daea;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    text-decoration: none;
}
.cz-btn-secondary:hover {
    border-color: #2f68ff;
    background: #f0f5ff;
}
.cz-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 36px;
    background: #1faf5a;
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    box-shadow: 0 10px 26px rgba(31,175,90,0.3);
}
.cz-btn-submit:hover {
    background: #179049;
    transform: translateY(-1px);
}
.cz-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.cz-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #5b6f8a !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
}
.cz-btn-back:hover { color: #2f68ff; }

/* SPINNER */
.cz-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cz-spin 0.75s linear infinite;
    vertical-align: middle;
}
@keyframes cz-spin { to { transform: rotate(360deg); } }

/* FORM MESSAGES */
.cz-form-message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}
.cz-form-message.is-error  { color: #e03838; }
.cz-form-message.is-success { color: #1faf5a; }

/* STEP 2: CONFIRM CARD */
.cz-confirm-card {}
.cz-confirm-reg-badge {
    display: inline-block;
    background: #ffd84c;
    border: 3px solid #f5c400;
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #111;
    margin-bottom: 22px;
    text-transform: uppercase;
}
.cz-confirm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
.cz-confirm-item {
    border: 1px solid #e6edf8;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f8fafd;
}
.cz-ci-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #7b91b0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
}
.cz-ci-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #0f2744;
}
.cz-confirm-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* SECTION CARDS */
.cz-section-card {
    margin-bottom: 20px;
}
.cz-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}
.cz-section-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.cz-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f2744;
    margin: 0 0 3px;
}
.cz-section-desc {
    font-size: 13px;
    color: #7b91b0;
    margin: 0;
}

/* FORM GRID */
.cz-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cz-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cz-span-2 { grid-column: span 2; }
.cz-input {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid #d5e0ef;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    color: #0f2744;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.cz-input:focus {
    border-color: #2f68ff;
    box-shadow: 0 0 0 3px rgba(47,104,255,0.10);
}
.cz-input[readonly] {
    background: #f4f6fb;
    color: #5b6f8a;
    cursor: default;
}
.cz-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b91b0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
}
.cz-textarea {
    width: 100%;
    border: 1.5px solid #d5e0ef;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    color: #0f2744;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.18s;
    display: block;
}
.cz-textarea:focus {
    border-color: #2f68ff;
    box-shadow: 0 0 0 3px rgba(47,104,255,0.10);
}
.cz-char-counter {
    margin-top: 7px;
    font-size: 12px;
    color: #7b91b0;
    text-align: right;
}
.cz-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7b91b0;
}

/* FEATURES GRID */
/* FEATURES ACCORDION */
.cz-acc-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cz-acc-item {
    border: 1px solid #e2e8f4;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.cz-acc-item:has(.cz-feature-check:checked) {
    border-color: #2f68ff;
}
.cz-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: #f8fafd;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0f2744 !important;
    text-align: left;
    transition: background 0.18s;
}
.cz-acc-trigger:hover { background: #eef3ff; }
.cz-acc-trigger[aria-expanded="true"] { background: #eef3ff; }
.cz-acc-icon { font-size: 16px; flex-shrink: 0; }
.cz-acc-label { flex: 1; }
.cz-acc-count {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #2f68ff;
    border-radius: 20px;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
    display: none;
}
.cz-acc-count.has-checked { display: inline-block; }
.cz-acc-chevron {
    flex-shrink: 0;
    color: #7a93b8;
    transition: transform 0.22s;
}
.cz-acc-trigger[aria-expanded="true"] .cz-acc-chevron { transform: rotate(180deg); }
.cz-acc-body {
    padding: 14px 16px 18px;
    border-top: 1px solid #e2e8f4;
    background: #fff;
}
.cz-acc-body[hidden] { display: none; }

/* Features grid (inside accordion) */
.cz-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}
.cz-features-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0f2744;
    cursor: pointer;
    padding: 5px 0;
    line-height: 1.3;
}
.cz-features-grid label:hover { color: #2f68ff; }
.cz-features-grid input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #2f68ff;
    cursor: pointer;
    flex-shrink: 0;
}
/* EV-only feature badge */
.cz-ev-badge {
    font-size: 10px;
    font-weight: 700;
    color: #1faf5a;
    background: #e6f9f0;
    border: 1px solid #b3edce;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 2px;
    flex-shrink: 0;
}
/* Hidden EV features for non-EV vehicles */
.cz-ev-feature.cz-ev-hidden {
    display: none;
}

/* UPLOAD */
.cz-upload-box {
    display: block;
    border: 2px dashed #c8d8ef;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    background: #f8fafd;
}
.cz-upload-box:hover { border-color: #2f68ff; background: #f0f5ff; }
.cz-upload-box.dragging { border-color: #1faf5a; background: #eafaf2; }
.cz-upload-icon { font-size: 34px; margin-bottom: 10px; }
.cz-upload-inner p { margin: 0 0 5px; font-size: 15px; color: #0f2744; }
.cz-upload-inner span { font-size: 12px; color: #7b91b0; }

/* IMAGE PREVIEW */
.cz-image-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.cz-image-preview-sm .cz-image-item { height: 70px; }
.cz-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 90px;
    background: #e8edf5;
}
.cz-image-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.cz-remove-img {
    position: absolute; top: 5px; right: 5px;
    background: rgba(220,30,30,0.88);
    color: #fff; border: none; border-radius: 50%;
    width: 22px; height: 22px;
    padding: 0;
    font-size: 14px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cz-existing-label {
    position: absolute; bottom: 5px; left: 5px;
    background: rgba(22,163,74,0.85);
    color: #fff; font-size: 10px; font-weight: 600;
    border-radius: 6px; padding: 2px 6px;
    pointer-events: none;
}

/* ACCOUNT NOTICE */
.cz-account-notice {
    background: #eef4ff;
    border: 1px solid #c6d8ff;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    color: #1c3a6e;
    line-height: 1.5;
}

/* STEP NAV */
.cz-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef1f8;
}

/* REVIEW */
.cz-review-card { margin-bottom: 16px; }
.cz-review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef1f8;
}
.cz-review-head h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f2744;
    margin: 0;
}
.cz-edit-link {
    background: none;
    border: 1px solid #d0daea;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2f68ff !important;
    cursor: pointer;
    transition: 0.18s;
}
.cz-edit-link:hover { background: #f0f5ff; }
.cz-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cz-rv-item {
    background: #f8fafd;
    border: 1px solid #eaeef8;
    border-radius: 12px;
    padding: 12px 14px;
}
.cz-rv-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #7b91b0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.cz-rv-val {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f2744;
}
.cz-review-features-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cz-feat-tag {
    background: #eef4ff;
    color: #2f68ff;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
}
.cz-review-text {
    font-size: 14px;
    color: #0f2744;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
}
.cz-muted { color: #7b91b0; font-size: 14px; }

/* TERMS */
.cz-terms-card {
    background: #f8fafd;
    border: 1.5px solid #d0daea;
}
.cz-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #0f2744;
    line-height: 1.5;
}
.cz-terms-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #2f68ff;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.cz-terms-check a { color: #2f68ff; font-weight: 600; }

/* SUCCESS */
.cz-success-wrap {
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(10,30,60,0.06);
}
.cz-success-icon { font-size: 58px; margin-bottom: 18px; }
.cz-success-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f2744;
    margin: 0 0 12px;
}
.cz-success-sub {
    font-size: 16px;
    color: #5b6f8a;
    margin: 0 0 28px;
}
.cz-success-card {
    background: #f4f8ff;
    border: 1.5px solid #d0daea;
    border-radius: 18px;
    padding: 24px 28px;
    max-width: 460px;
    margin: 0 auto 22px;
}
.cz-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e4eaf4;
}
.cz-success-row:last-child { border-bottom: none; }
.cz-success-label { font-size: 13px; font-weight: 600; color: #7b91b0; }
.cz-success-value { font-size: 15px; font-weight: 700; color: #0f2744; }
.cz-status-badge {
    background: #fff7e6;
    border: 1px solid #ffd06e;
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #8a5200;
}
.cz-success-note {
    font-size: 14px;
    color: #7b91b0;
    margin: 0 0 28px;
    line-height: 1.6;
}
.cz-success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cz-confirm-grid { grid-template-columns: repeat(2, 1fr); }
    .cz-form-grid    { grid-template-columns: repeat(2, 1fr); }
    .cz-features-grid { grid-template-columns: repeat(2, 1fr); }
    .cz-review-grid  { grid-template-columns: repeat(2, 1fr); }
    .cz-image-preview { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
    .cz-advertise-section { padding: 20px 12px 40px; }
    .cz-progress-bar-wrap { padding: 16px 14px; }
    .cz-progress-step span { display: none; }
    .cz-ps-dot { width: 26px; height: 26px; font-size: 11px; }
.cz-field-wrap {grid-column: span 2;  }
    .cz-page-title  { font-size: 26px; }
    .cz-step-title  { font-size: 22px; }
    .cz-card        { padding: 20px 16px; }

    .cz-confirm-grid  { grid-template-columns: 1fr 1fr; }
    .cz-form-grid     { grid-template-columns: 1fr; }
    .cz-form-grid-2   { grid-template-columns: 1fr; }
    .cz-features-grid { grid-template-columns: repeat(2, 1fr); }
    .cz-review-grid   { grid-template-columns: 1fr; }
    .cz-image-preview { grid-template-columns: repeat(3, 1fr); }

    .cz-acc-trigger { padding: 11px 12px; font-size: 13px; }
    .cz-acc-body    { padding: 12px 12px 16px; }

    .cz-confirm-actions { flex-direction: column; }
    .cz-btn-primary, .cz-btn-secondary, .cz-btn-submit { width: 100%; justify-content: center; }

    .cz-step-nav { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
    .cz-step-nav .cz-btn-back { text-align: center; justify-content: center; }

    .cz-success-wrap { padding: 32px 20px; }
    .cz-success-actions { flex-direction: column; }

    .cz-plate-input-wrap input { font-size: 24px; min-height: 62px; }
    .cz-plate-input-wrap { max-width: 100%; }
}
